{extend name='public/modal'}
{block name='content'}
<style type="text/css">
    .submit_btn{
         float: center;
  }
  .domeImg{width: 50%;margin-left: 20%;}
</style>
<form action="add_library" class="layui-form layui-form-pane" id="mainForm" method="post" enctype="multipart/form-data">

    <form class="form-horizontal" id='addForm' action="add_banner" enctype="multipart/form-data">
                        <div class="layui-form-item">
                            <label class="layui-form-label">
                                名称
                            </label>
                            <div class="layui-input-block">
                                 <input type="text" name="name"  class="layui-input" id="name">
                            </div>
                        </div>


                        <div class="layui-form-item">
                            <label class="layui-form-label">
                                类别
                            </label>
                            <div class="layui-input-block">
                                  <select id="label_library_type_id" name="label_library_type_id" class="form-control">
                                    <option value="">请选择类别</option>
                                    {volist name='label_library_info' id='vo'}
                                        <option value="{$vo.id}">{$vo.label_library_value}</option>
                                    {/volist}
                                </select>
                            </div>
                        </div>

						<div class="layui-form-item">
                            <label class="layui-form-label">
                                描述
                            </label>
                            <div class="layui-input-block">
								<textarea name="label_library_description"  class="layui-input" id="label_library_description" height="200px"></textarea>
                                 <!--<input type="text" name="label_library_description"  class="layui-input" id="label_library_description">-->
                            </div>
                        </div>
                </div>

            <div class="layui-form-item">
                <div class="layui-input-block submit_btn">
                    <input id="addReset" type="reset" style="display: none" value="这个是Form清除" />
                    <button type="submit" class="layui-btn layui-btn-success">保存</button>
                </div>
            </div>
</form>
{/block}
{block name='js'}
<script type="text/javascript">
$(function(){
	w_ajaxSubmit($('#mainForm'))
});
</script>
{/block}
